/***************************************************************************
 *   Copyright (C) 2009 by Geoffrey McRae   *
 *   geoff@spacevs.com   *
 *                                                                         *
 *   This program is free software; you can redistribute it and/or modify  *
 *   it under the terms of the GNU General Public License as published by  *
 *   the Free Software Foundation; either version 2 of the License, or     *
 *   (at your option) any later version.                                   *
 *                                                                         *
 *   This program is distributed in the hope that it will be useful,       *
 *   but WITHOUT ANY WARRANTY; without even the implied warranty of        *
 *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the         *
 *   GNU General Public License for more details.                          *
 *                                                                         *
 *   You should have received a copy of the GNU General Public License     *
 *   along with this program; if not, write to the                         *
 *   Free Software Foundation, Inc.,                                       *
 *   59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.             *
 ***************************************************************************/
#ifdef AUDIO_ALSA
#include "../renderer.h"
#include "../../common/debug.h"

void	*mpr_audio_alsa_new(void *data);
void	mpr_audio_alsa_free    (void *data);
bool	mpr_audio_alsa_open    (void *data, unsigned int rate, unsigned int channels);
void	mpr_audio_alsa_close   (void *data);
double	mpr_audio_alsa_getdelay(void *data);
bool	mpr_audio_alsa_write   (void *data, int16_t *samples, unsigned int frames);
void	mpr_audio_alsa_pause   (void *data);
void	mpr_audio_alsa_resume  (void *data);

DEFINE_AUDIO_RENDERER(PLAYER_AUDIO_ALSA,
	mpr_audio_alsa_new		,
	mpr_audio_alsa_free		,
	mpr_audio_alsa_open		,
	mpr_audio_alsa_close		,
	mpr_audio_alsa_getdelay	,
	mpr_audio_alsa_write		,
	mpr_audio_alsa_pause		,
	mpr_audio_alsa_resume
);

#endif